package eventmanager.backend.event;

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Iterator;

public class EventManager extends EventList{

	private Iterator<Event> iterator;
	
	private PrintWriter out;
	
	public EventManager(){

		//iterator = eventList.iterator();
	}
	
	
	public void goThroughArray(ArrayList<Event> eventList){
		if(eventList.isEmpty()){
			System.out.println("List is empty");
		}
		iterator = eventList.iterator();
		
		while(iterator.hasNext()){
			System.out.println(iterator.next().toString());
		}
	}
	
	public void printToText(ArrayList<Event> eventList){
		if (eventList.isEmpty()){
			System.out.println("List is empty");
		}
		iterator = eventList.iterator();
		
		out.println("# YAML");
		while(iterator.hasNext()){
			out.println(iterator.next().toString());
		}
	}
	
	public void makeOrder(ArrayList<Event> eventList){
		
	}
}
